package com.allwees.bs.c.module.share.util;

import com.allwees.core.common.util.encrypt.DES;
import com.allwees.core.common.util.http.UrlUtil;

/**
 *
 *
 * @author yangylsky
 *
 */
public class ShareEncryptor {
	private static final String SEED = "Teemo is saimoe hero in whole lol, not one of the.";

	/**
	 * 加密
	 *
	 * @param content
	 * @return
	 */
	public static String encrypt(String content) {
		return UrlUtil.encodeUrl(DES.encrypt(content, SEED));
	}

	/**
	 * 解密
	 *
	 * @param content
	 * @return
	 */
	public static String decrypt(String content) {
		return DES.decrypt(UrlUtil.decodeUrl(content), SEED);
	}
}
